package com.pattern.structural.adaptor;

/**
 * @Description an default adapter for {@link SafetyElecricity} .
 * @Author Ping
 * @Date 2022/3/28 16:33
 **/
public abstract class DefaultSafetyElectricity implements SafetyElecricity {
    /**
     * implement in default.
     */
    @Override
    public void switchOn() {
        System.out.println("the electricity could be turn on.") ;
    }
    /**
     * implement in default.
     */
    @Override
    public void switchOff() {
        System.out.println("the electricity could be turn off.") ;
    }

    @Override
    public void pay() {
        System.out.println("the electricity could be pay in default.") ;
    }

}
